[ToC] [Up] [Back] [Next] ... [Book Plug] |
The Information Commons .................... Introduction to HTML |
The P element marks a
block of text as a paragraph -- the tag <P>
marks the beginning of the paragraph, while the tag
</P>
marks the end of a paragraph. The end
tag, however, is optional, as a paragraph is automatically
ended when you start another paragraph, or when you start
a heading, blockquote, list, table or form.
In general, a browser will add appropriate spacings and
indents to indicate the paragraph. Note that the Netscape
Navigator often adds extra vertical spacing after a paragraph
if you end the paragraph with a </P>
end tag. This is a "bug" with Netscape, but can be used
as a "feature" if you want to more finely control line
spacings between a paragraph and a following element such
as a table or a horizontal rule
For example, the above text, including the heading, was marked up as follows:
<p> The P element marks a block of text as a paragraph -- the tag <code><P></code> marks the beginning of the paragraph, while the tag <code></P></code> marks the end of a paragraph. The end tag, however, is optional, as a paragraph is automatically ended when you start another paragraph, or when you start a heading, blockquote, list, table or form.</p> <p>In general, a browser will add appropriate spacings and indents to indicate the paragraph. Note that the Netscape Navigator often adds extra vertical spacing after a paragraph if you end the paragraph with a <code></P></code> end tag. This is a "bug" with Netscape, but can be used as a "feature" if you want to more finely control line spacings between a paragraph and a following element such as a table or a horizontal rule</p>
[ToC] [Up] [Back] [Next] ... [Book Plug] | .................... Introduction to HTML |
© Ian Graham 1994-1995 | Page Last Updated: 4 December 1995 |